import { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

const configRoutes: RouteRecordRaw[] = [
	{
		path: '/',
		component: Layout,
		redirect: '/welcome',
		meta: { title: 'Dashboard', index: 1 },
		children: [
			{
				path: '/welcome',
				name: 'welcome',
				component: () => import('@/views/data/welcome.vue'),
				meta: { title: '欢迎页', icon: 'HomeFilled' },
			},
		],
	},
]

export default configRoutes
